<?php
/**
 * Created by PhpStorm.
 * User: 鄢鹏权
 * Date: 2017/9/24
 * Time: 16:25
 */

namespace App\Controller;


use Tsy\Library\Controller;

class UserController extends Controller
{
    function login($Account,$PWD){
        if($Account=='Admin'&&$PWD='123456'){
            session('UID',1);
            session('G',1);
            session('UN','管理员');
        }
        return [
            'UID'=>1,
            'UN'=>'管理员',
            'Group'=>[1]
        ];
    }
    function reg($Account,$PWD){}
}